﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace Nirvana
{
    [CustomPropertyDrawer(typeof(TagAttribute))]
    public sealed class TagPropertyDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            string stringValue = EditorGUI.TagField(position, label.text, property.stringValue);
            property.stringValue = stringValue;
        }

    }
}

